package cn.edu.sgu.www.mhxysy.dto.system;

import cn.edu.sgu.www.mhxysy.dto.DataTransferObject;
import cn.edu.sgu.www.mhxysy.consts.CustomMessages;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Data
@ApiModel
public class UserPassUpdateDTO implements DataTransferObject {

    /**
     * 用户名
     */
    @NotBlank(message = "用户名" + CustomMessages.NOT_NULL)
    @ApiModelProperty(value = "用户名", required = true)
    private String username;

    /**
     * 旧密码
     */
    @NotBlank(message = "旧密码" + CustomMessages.NOT_NULL)
    @ApiModelProperty(value = "旧密码", required = true)
    private String oldPass;

    /**
     * 新密码
     */
    @NotBlank(message = "新密码" + CustomMessages.NOT_NULL)
    @ApiModelProperty(value = "新密码", required = true)
    private String password;

    /**
     * 确认密码
     */
    @NotBlank(message = "确认密码" + CustomMessages.NOT_NULL)
    @ApiModelProperty(value = "确认密码", required = true)
    private String rePass;
}